/*
 * @descripttion: 用户相关接口
 * @author: cp
 * @Date: 2021-04-27 20:30:13
 */

import request from '../utils/request';

// 用户注册
export function register(data: any) {
  return request({
    url: '/user/register',
    method: 'post',
    data,
  });
}

// 验证用户名是否存在
export function isExist(data: any) {
  return request({
    url: '/user/isExist',
    method: 'post',
    data,
  });
}

// 用户登录
export function login(data: any) {
  return request({
    url: '/user/login',
    method: 'post',
    data,
  });
}
